package com.ksy.common.utils;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

/**
 * Created by Ksy.
 */
public interface ApiServer {
    String Base_url = "http://210.16.185.211:8080/";

    //获取微信登录token
    @GET
    Observable<String> getWeChatToken(@Url String url, @QueryMap Map<String, Object> params);

    //刷新Token
    @GET
    Observable<String> refreshToken(@Url String url, @QueryMap Map<String, Object> params);

    //验证Token
    @GET
    Observable<String> validToken(@Url String url, @QueryMap Map<String, Object> params);

    //获取微信个人信息
    @GET
    Observable<String> getWeChatInfo(@Url String url, @QueryMap Map<String, Object> params);

    @GET
    Observable<ResponseBody> downloadFile(@Url String url);
}
